package com.xxx.proj.exception;

import com.xxx.proj.utils.CodeEnum;

public class BussinessException extends RuntimeException{

    private   String code;

    private   String data;

    private   String description;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void  BussinessException(CodeEnum codeEnum) {
        this.code = codeEnum.getCode();
        this.data = codeEnum.getData();
        this.description = codeEnum.getDescription();
    }


}
